<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style type="text/css">
            .addBg {
                background: #f00;
                color: #fff;
            }
            .bigger {
                font-size:20px;
            }
        </style>
        <script type="text/javascript" src="jquery/jquery-1.11.3.js"></script>
        
        <script type="text/javascript">
            $(function(){
                //第二个div替换到第一个div
                $("#d1").html($("#d2").html());
                
                //text仅仅替文本
                $("#d1").html($("#d2").text());
                
                //
            });
        </script>
    </head>
    <body>
        <div id="d1">
            第一个div
        </div>
        <div id="d2">
            <ul>
                <li>八戒</li>
                <li>悟空</li>
                <li>无忌</li>
            </ul>
        </div>
    </body>
</html>
